<template>
  <div>
    <fileUpload @fileButtonClick="handleFileClick">
      <!-- <template slot="full" slot-scope="{ data }"> -->
      <template #full="{ data }">
        <h2>哈哈哈</h2>
        {{ data }}
      </template>
    </fileUpload>
  </div>
</template>

<script>
import fileUpload from "@/components/FileUpload";
export default {
  components: { fileUpload },
  methods: {
    handleFileClick() {
      console.log("点击了父组件");
    },
  },
};
</script>

<style></style>
